package com.greenx.hello.collections;

import java.util.HashMap;
import java.util.Map;

public class HelloMap {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		t2();
	}

	private static void t2() {
		Map<String, String> inputParams = new HashMap<String, String>();
		inputParams.put("name", "stephen");
		inputParams.put("address", "Shanghai");
		Map<String, String> inputParams2 = inputParams;
		inputParams2.put("address", "SD");
		System.out.println(inputParams.get("name") + "|"
				+ inputParams.get("address"));
		System.out.println(inputParams2.get("name") + "|"
				+ inputParams2.get("address"));
	}

	private static void t1() {
		Map<String, Object> result = new HashMap<String, Object>();
		System.out.println(result.isEmpty());
	}

}
